

package Chat.Run;

import Chat.System.*;
import Chat.Donnees.*;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 * Pour tester la reception de fichier
 * @author Ndanja & Papa Abdou
 */
public class TestLectureReseau {

    private static ArrayList cont;
    public static void main(String[] args) {

        ChatSystem system = new ChatSystem();

        cont = new ArrayList();
        Contact lecontact = new Contact("tot","localhost" );
        Contact unContact = new Contact("titi","localhost" );
        cont.add(lecontact);
        cont.add(unContact);
        ChatNI leNi1=new ChatNI();
        leNi1.startListenting();
        leNi1.sendHello(lecontact, Boolean.TRUE,"");
        //leNi1.sendMsg(" je suis en poste !",cont,lecontact);

        InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);
        try {
            String line = br.readLine();
            //leNi1.sendMsg(line,cont, lecontact );
        } catch (IOException ex) {
            Logger.getLogger(TestLectureReseau.class.getName()).log(Level.SEVERE, null, ex);
        }

    }

}
